import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { baseURL } from '@/utils/request'
import './utils/elementui_com'
import 'element-ui/lib/theme-chalk/index.css'
import './permission'
import '@/directive'
// 引入 mavon-editor显示markdown日志
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
// 挂载全局
Vue.use(mavonEditor)
Vue.config.productionTip = false

//定义过滤器
Vue.filter('urlFilter', function (url) {
	if (url && url.indexOf('http') == -1) {
		return baseURL + url
	} else {
		return url
	}
})

new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')
